package a.f.h;

import a.c.d;
import a.c.m;
import a.c.z;
import a.f.*;

public class i
  extends mb
{
  public static final Object w = j.y;
  private a.f.h.a.c x = new a.f.h.a.c();
  private double y;
  private boolean z = false;
  private boolean A = false;
  private vc B = new a_();
  private k C;
  public static int D;
  
  public i()
  {
    d(false);
    f(this.x.o());
    g(this.x.e());
    e(this.x.n());
    a(1.0D);
    cb localcb = new cb();
    j(localcb);
    localcb.a(false);
  }
  
  public boolean a()
  {
    return this.x.a();
  }
  
  public void h(boolean paramBoolean)
  {
    this.x.h(paramBoolean);
  }
  
  protected k s()
  {
    return new k();
  }
  
  public k t()
  {
    if (k.g == 0) {
      if (this.C == null) {
        this.C = s();
      }
    }
    return this.C;
  }
  
  public void a(k paramk)
  {
    if (paramk == null) {
      throw new NullPointerException();
    }
    this.C = paramk;
  }
  
  public void i(boolean paramBoolean)
  {
    this.A = paramBoolean;
    j(this.z);
  }
  
  public boolean u()
  {
    int i = k.g;
    vc localvc = b();
    if (i == 0) {
      if ((localvc instanceof pc)) {
        return ((pc)localvc).h();
      }
    }
    if (i == 0) {
      if (this.A) {
        throw new IllegalStateException("No LabelLayoutTranslator registered");
      }
    }
    return false;
  }
  
  public void j(boolean paramBoolean)
  {
    int i = k.g;
    this.z = paramBoolean;
    if (i == 0)
    {
      if (!this.z)
      {
        if (i != 0) {
          break label104;
        }
        if (!this.A) {}
      }
      else
      {
        d(this.B);
      }
    }
    else
    {
      vc localvc = b();
      if (i == 0)
      {
        if ((localvc instanceof pc))
        {
          ((pc)localvc).g(this.z);
          ((pc)localvc).d(this.z);
          ((pc)localvc).f(this.A);
        }
        if (i != 0) {
          break label105;
        }
        c(true);
      }
      if (!k.f) {
        return;
      }
    }
    label104:
    label105:
    c(false);
  }
  
  public boolean v()
  {
    int i = k.g;
    vc localvc = b();
    if (i == 0) {
      if ((localvc instanceof pc))
      {
        if ((i != 0) || (((pc)localvc).i())) {
          if (i != 0) {}
        }
        return ((pc)localvc).f();
      }
    }
    if (i == 0) {
      if (this.z) {
        throw new IllegalStateException("No LabelLayoutTranslator registered");
      }
    }
    return false;
  }
  
  public void a(double paramDouble)
  {
    int i = k.g;
    if (i == 0) {}
    this.x.j(paramDouble >= 0.5D);
    if (i == 0) {}
    this.x.i(paramDouble >= 0.2D);
    this.y = paramDouble;
  }
  
  public double w()
  {
    return this.y;
  }
  
  public void a(int paramInt)
  {
    this.x.a(paramInt);
  }
  
  public void g(vc paramvc)
  {
    super.g(paramvc);
  }
  
  public int x()
  {
    return this.x.t();
  }
  
  protected boolean b(o paramo)
  {
    return this.x.b(paramo);
  }
  
  protected void a(o paramo)
  {
    this.x.a(t());
    this.x.g(e());
    this.x.a(paramo);
  }
  
  public void doLayout(o paramo)
  {
    int i = k.g;
    if (i == 0) {
      if ((e() instanceof t))
      {
        t localt = (t)e();
        localt.a(x());
        localt.b(x());
        if (i == 0) {
          if (!u()) {
            if (i != 0) {
              break label68;
            }
          }
        }
        label68:
        localt.a(v());
      }
    }
    super.doLayout(paramo);
  }
  
  static class a_
    extends pc
  {
    public void doLayout(o paramo)
    {
      int j = k.g;
      boolean bool = k.f;
      super.doLayout(paramo);
      if ((j != 0) || ((i()) && (a() != null)))
      {
        z localz = new z();
        Object localObject = paramo.w();
        label140:
        label142:
        do
        {
          do
          {
            if (!((m)localObject).e()) {
              break label145;
            }
            d locald = ((m)localObject).a();
            if ((j == 0) && (bool)) {
              return;
            }
            if (locald.g())
            {
              wb[] arrayOfwb = paramo.g(locald);
              int i = 0;
              do
              {
                if (i >= arrayOfwb.length) {
                  break;
                }
                localz.add(arrayOfwb[i]);
                i++;
                if (j != 0) {
                  break label142;
                }
                if (bool) {
                  break label140;
                }
              } while (!bool);
            }
          } while (j != 0);
          ((m)localObject).f();
        } while (!bool);
        label145:
        localObject = new a.f.e.c();
        if (j == 0) {
          ((a.f.e.c)localObject).a(paramo, new z(), localz);
        }
      }
    }
    
    public boolean canLayout(o paramo)
    {
      return true;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.h.i

 * JD-Core Version:    0.7.0.1

 */